<%@ page import="your_car_status.Diagnostic" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'diagnostic.label', default: 'Diagnostic')}" />
		<title>Edit Diagnostic</title>
	</head>
	<body>
		<a href="#edit-diagnostic" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div id="edit-diagnostic" class="content scaffold-edit" role="main">
			<h1><g:message code="Edit Diagnostic" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<g:hasErrors bean="${diagnosticInstance}">
			<ul class="errors" role="alert">
				<g:eachError bean="${diagnosticInstance}" var="error">
				<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
				</g:eachError>
			</ul>
			</g:hasErrors>
			<g:form method="post" >
				<g:hiddenField name="id" value="${diagnosticInstance?.id}" />
				<g:hiddenField name="version" value="${diagnosticInstance?.version}" />
				<fieldset class="form">
					<g:render template="formDiagnostic"/>
				</fieldset>
				<fieldset class="buttons">
					<g:actionSubmit class="save" action="updateDiagnostic" value="${message(code: 'Update')}" />
					<g:actionSubmit class="delete" action="deleteDiagnostic" value="${message(code: 'Delete')}" formnovalidate="" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
                                        <g:link class="save" action="listDiagnostic" id="${carId}" >${message(code: 'Return')}</g:link>
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
